<?php
//防止xss攻击的特殊方法
function fangXSS($string) {
    require_once '/Plugin/htmlpurifier/HTMLPurifier.auto.php';
    $config = HTMLPurifier_Config::createDefault();
    $purifier = new HTMLPurifier($config);
    return $purifier->purify($string);
}
